 <html>                                                                  
 <head>                                                                  
 <script type="text/javascript" src="js/jquery-1.6.2.min.js"></script>          
 <script type="text/javascript">
   // the last line read
   var from=0;
 
   $(document).ready(function() {
     poll();
   });
   
   function poll() {
     $.ajax({
       url: "http://localhost:7001/occurrence-crawler-console/log?path=/tmp/harvest/log.txt&from=" + from,
       success: function(html){
         $('#console').append(html);
       },
       complete: function(xmlHttp) {
         from = xmlHttp.getResponseHeader('from');
       }
     });
     
     setTimeout(poll, 2500);   
   }
 </script>   
  <style>
    div#console {
      padding: 10px;
      font: normal 12px courier, sans-serif;
    }
    div#console span.exception {
      color: #cc0000;
    }
    div#console span.indented {
      color: #cc0000;
    }
  </style>
 </head>                                                                 
 <body>
   <div id="console"></div>                                                                  
 </body>                                                                 
 </html>